<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<title>后台管理系统</title>
<link rel="stylesheet" href="__CSS__/css.css">
<script src="__COMMON__/js/jquery-1.11.3.min.js"></script>
<script src="__COMMON__/js/layer/layer.js"></script>
<script src="__JS__/base.js"></script>
<script>
//退出登录
function logout(){
	layer.confirm('你确定要退出吗？', {icon: 3}, function(index){
	    layer.close(index);
	    window.location.href="{:U('Index/logout')}";
	});
}
</script>
</head>
<body style="min-width: 1100px; overflow: hidden;">
	<!--header -->
	<div class="header">
		<div class="logo">
			<div class="logo_img" style="background: none;">
				<img height="70" width="160" src="__IMG__/logo/logo.png">
			</div>
		</div>
		<div class="top">
			<div class="top_link">
				<div style="line-height: 35px; float: left; margin-right: 20px;">
					您好 [ &nbsp;&nbsp;<span style="color: #00F; font-size: 18px;">{$_SESSION['account']}</span>
					&nbsp;&nbsp;] ，欢迎回来！
				</div>
				<ul>
					<li class="top_link_left"></li>
					<li class="top_link_bg"><a class="annex" target="iframe"
						href="{:U('Index/main')}">后台数据统计</a></li>
					<li class="top_link_bg"><a class="annex" target="_blank"
						href="/index.php/">Pc预览</a></li>
					<!-- <li class="top_link_bg"><a class="annex" target="_blank" href="{:U('Mobile/Index/index')}">手机预览</a></li> -->
					<li class="top_link_bg"><a class="annex" href="javascript:;"
						onclick="update_pwd();">密码修改</a></li>
					<li class="top_link_bg"><a class="annex" href="javascript:;"
						onclick="clear_cache();">清除缓存</a></li>
					<li class="top_link_bg"><a class="annex" href="javascript:;"
						onclick="update_version();">更新版本</a></li>
					<li class="top_link_bg"><a class="annex" href="javascript:;"
						onclick="return logout();">退出</a></li>
					<li class="top_link_right"></li>
				</ul>
			</div>
			<div class="clear"></div>
			<div class="menu">
				<ul>
					<foreach name="data" item="vo">
					<li><a
						href="{:U($vo['default_name'])}"
						target="iframe" id="menu_hover{$vo.id}"
						onclick="change_menu({$vo.id})">{$vo.title}</a></li>
					</foreach>
				</ul>
			</div>
		</div>
	</div>

	<!--left 此处的sub_menu_a+id   以及  change_sub_menu+id  (id为不重复的数字)  必须存在，否则菜单栏会出错 -->
	<div class="left" id="left_sub_menu">
		<input type="hidden" name="right_show" id="right_show" value="1" />
		<div class="sub_menu_title">二级子菜单</div>
		<foreach name="data" item="vo">
		<ul class="sub_menu" id="sub_menu{$vo['id']}" style="display: none;">
			<foreach name="vo['sub']" item="sub" key="k"> <if
				condition="$k == 0">
			<li><a name="iframe" id="sub_menu_{$sub['id']}"
				onclick="change_sub_menu({$sub['id']})"
				href="{:U($sub['name'])}"
				target="iframe" class="sub_menu_hover">{$sub['title']}</a></li>
			<else />
			<li><a name="iframe" id="sub_menu_{$sub['id']}"
				onclick="change_sub_menu({$sub['id']})"
				href="{:U($sub['name'])}"
				target="iframe">{$sub['title']}</a></li>
			</if> </foreach>
		</ul>
		</foreach>
		<div class="web_info">后台管理系统</div>
	</div>

	<!-- split_line -->
	<div class="split_line" id="left_hidden">
		<div class="left_hidden botton_left_hover"></div>
	</div>

	<!-- right -->
	<div class="right">
		<iframe frameborder="0" id="iframe" name="iframe"
			 src="{:U('main')}"></iframe>
	</div>


</body>
</html>
